import { useState } from 'react'
const useCount = () => {
  const [ count, setCount ] = useState(10) 
  const add = () => {
    setCount(count + 1)
  }

  return {
    count, 
    add
  }
}

export default useCount